package code

const (
	// ErrMasterDown - 500: master ceph is down
	ErrMasterDown = 110000 + iota
	// ErrSlaveDown - 500: slave ceph is down
	ErrSlaveDown
	// ErrAnyDown - 500: any ceph is down
	ErrAnyDown
	// AllDown - 500: all cephs are down
	ErrAllDown
)

const (
	// ErrSyncRequestMaster - 500: request master failed using sync
	ErrSyncRequestMaster = 110100 + iota
	// ErrSyncRequestSlave - 500: request slave failed using sync
	ErrSyncRequestSlave
	// ErrSyncRequestAny - 500: request any ceph failed using sync
	ErrSyncRequestAny
	// ErrSyncRequestStatusInvalid - 500: different response status using sync
	ErrSyncRequestStatusInvalid
)

const (
	// ErrAsyncRequestMaster - 500: request master failed using async
	ErrAsyncRequestMaster = 110100 + iota
	// ErrASyncRequestAny - 500: request any ceph failed using async
	ErrAsyncRequestAny
)

const (
	// ErrDirectRequestFail - 500: request failed using diector
	ErrDirectRequestFail = 110300 + iota
	// ErrDirectRequestAny - 500: request any ceph failed using direct
	ErrDirectRequestAny
)
